package model;

import controller.Spiel;

public class Linie {
	public float phi;
	public float v;
	public float width;
	public int lueckeStart;
	public Transform transform = new Transform();
	
	public Schritt lastSchritt;
	
	public Linie() {
	}
	
	public float getX() {
		return lastSchritt.getFinalX();
	}
	
	public float getY() {
		return lastSchritt.getFinalY();
	}
	
	public void turnLeft() {
		phi += Math.PI / 20 * transform.phiFaktor.getValue();
	}
	
	public void turnRight() {
		phi -= Math.PI / 20 * transform.phiFaktor.getValue();
	}
	
	public void startLuecke() {
		lueckeStart = Spiel.CURRENT_SPIEL.getTime();
	}
}
